<script setup>
import { useLanguageStore } from '@/stores/language';
const store = useLanguageStore()
</script>

<template>
  <div class="footer">
    <div class="ending">
      <p>{{ $t("companyName") }}</p>
      <div class="message">
        <p v-show="store.currentLang === 'zh'"><router-link to="/agreement-CN">{{ $t("tip1") }}</router-link></p>
        <p v-show="store.currentLang === 'en'"><router-link to="/agreement-US">{{ $t("tip1") }}</router-link></p>
        <p class="none">{{ $t("tip2") }}</p>
        <p class="none">{{ $t("tip3") }}</p>
      </div>
    </div>
    <p>© 2025 {{ $t("copyright") }}</p>
    <p>{{ $t("address") }} feedback@zhimou.com.cn</p>
  </div>
</template>

<style scope>
.footer {
  width: 100%;
  height: 30vh;
  background-color: var(--bgcolor);
  color: var(--txcolor);
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--footer-color);
}

.ending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
}

.message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.footer p {
  text-align: center;
  margin-top: 20px;
  font-weight: 500;
}

a:-webkit-any-link{
  color: var(--txcolor);
  text-decoration: none;
}

.none{
  cursor: not-allowed;
}
</style>